package ch06;

public class Person {
    private String name ;
    private String words ;

    public Person() {
    }

    public Person(String name){
        this.name = name;
    }

    public Person(String name,String words){
        this.name = name ;
        this.words = words ;
    }

    public void setWords(String words) {
        this.words = words;
    }

    public String getWords() {
        return words;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void show(){
        System.out.println("name = " + name + " words = " + words);

    }
}
